"use client";

import { createPlatePlugin } from "platejs/react";

import { FixedToolbar } from "@/components/plate/ui/fixed-toolbar";
import { FixedToolbarButtons } from "@/components/plate/ui/fixed-toolbar-buttons";

export const FixedToolbarKit = [
  createPlatePlugin({
    key: "fixed-toolbar",
    render: {
      beforeContainer: () =&gt; (
        &lt;FixedToolbar&gt;
          &lt;FixedToolbarButtons /&gt;
        &lt;/FixedToolbar&gt;
      ),
    },
  }),
];
